package cn.decorate.service.impl;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.decorate.bean.Group;
import cn.decorate.service.GroupService;

/**
 * 
 * @author 张朝斌 实现组业务操作
 * 
 */
@Transactional
@Service("groupService")
public class GroupServiceBean implements GroupService {
	@Resource
	private SessionFactory sessionFactory;

	// 添加组
	public void save(Group group) {
		sessionFactory.getCurrentSession().persist(group);
	}

}
